<template>
  <div class="about-container">
    <el-card class="about-card">
      <template #header>
        <div class="card-header">
          <span>关于项目</span>
        </div>
      </template>
      <div class="card-content">
        <h3>技术栈</h3>
        <ul class="tech-stack">
          <li><span class="tech-label">Vue 3</span> - 渐进式JavaScript框架</li>
          <li><span class="tech-label">Element Plus</span> - Vue 3 UI组件库</li>
          <li><span class="tech-label">Vue Router 4</span> - Vue的官方路由管理器</li>
          <li><span class="tech-label">Pinia</span> - Vue的状态管理库</li>
          <li><span class="tech-label">Axios</span> - HTTP客户端</li>
          <li><span class="tech-label">Vite</span> - 下一代前端构建工具</li>
        </ul>
        <el-button @click="handleBack">返回首页</el-button>
      </div>
    </el-card>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const handleBack = () => {
  router.push('/')
}
</script>

<style scoped>
.about-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-card {
  max-width: 600px;
  margin: 50px auto;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 15px;
  color: #303133;
}

.tech-stack {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.tech-stack li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.tech-label {
  display: inline-block;
  background-color: #e6f7ff;
  color: #1890ff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 10px;
  font-size: 12px;
}
</style>